package com.sunny.fetch.pojo;

import java.util.ArrayList;
import java.util.List;

public class FStkAccountExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FStkAccountExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTidIsNull() {
            addCriterion("tid is null");
            return (Criteria) this;
        }

        public Criteria andTidIsNotNull() {
            addCriterion("tid is not null");
            return (Criteria) this;
        }

        public Criteria andTidEqualTo(Long value) {
            addCriterion("tid =", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotEqualTo(Long value) {
            addCriterion("tid <>", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThan(Long value) {
            addCriterion("tid >", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidGreaterThanOrEqualTo(Long value) {
            addCriterion("tid >=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThan(Long value) {
            addCriterion("tid <", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidLessThanOrEqualTo(Long value) {
            addCriterion("tid <=", value, "tid");
            return (Criteria) this;
        }

        public Criteria andTidIn(List<Long> values) {
            addCriterion("tid in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotIn(List<Long> values) {
            addCriterion("tid not in", values, "tid");
            return (Criteria) this;
        }

        public Criteria andTidBetween(Long value1, Long value2) {
            addCriterion("tid between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andTidNotBetween(Long value1, Long value2) {
            addCriterion("tid not between", value1, value2, "tid");
            return (Criteria) this;
        }

        public Criteria andDateIsNull() {
            addCriterion("date is null");
            return (Criteria) this;
        }

        public Criteria andDateIsNotNull() {
            addCriterion("date is not null");
            return (Criteria) this;
        }

        public Criteria andDateEqualTo(String value) {
            addCriterion("date =", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotEqualTo(String value) {
            addCriterion("date <>", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThan(String value) {
            addCriterion("date >", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateGreaterThanOrEqualTo(String value) {
            addCriterion("date >=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThan(String value) {
            addCriterion("date <", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLessThanOrEqualTo(String value) {
            addCriterion("date <=", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateLike(String value) {
            addCriterion("date like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotLike(String value) {
            addCriterion("date not like", value, "date");
            return (Criteria) this;
        }

        public Criteria andDateIn(List<String> values) {
            addCriterion("date in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotIn(List<String> values) {
            addCriterion("date not in", values, "date");
            return (Criteria) this;
        }

        public Criteria andDateBetween(String value1, String value2) {
            addCriterion("date between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andDateNotBetween(String value1, String value2) {
            addCriterion("date not between", value1, value2, "date");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewIsNull() {
            addCriterion("weekly_new is null");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewIsNotNull() {
            addCriterion("weekly_new is not null");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewEqualTo(Float value) {
            addCriterion("weekly_new =", value, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewNotEqualTo(Float value) {
            addCriterion("weekly_new <>", value, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewGreaterThan(Float value) {
            addCriterion("weekly_new >", value, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewGreaterThanOrEqualTo(Float value) {
            addCriterion("weekly_new >=", value, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewLessThan(Float value) {
            addCriterion("weekly_new <", value, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewLessThanOrEqualTo(Float value) {
            addCriterion("weekly_new <=", value, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewIn(List<Float> values) {
            addCriterion("weekly_new in", values, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewNotIn(List<Float> values) {
            addCriterion("weekly_new not in", values, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewBetween(Float value1, Float value2) {
            addCriterion("weekly_new between", value1, value2, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andWeeklyNewNotBetween(Float value1, Float value2) {
            addCriterion("weekly_new not between", value1, value2, "weeklyNew");
            return (Criteria) this;
        }

        public Criteria andTotalIsNull() {
            addCriterion("total is null");
            return (Criteria) this;
        }

        public Criteria andTotalIsNotNull() {
            addCriterion("total is not null");
            return (Criteria) this;
        }

        public Criteria andTotalEqualTo(Float value) {
            addCriterion("total =", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalNotEqualTo(Float value) {
            addCriterion("total <>", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalGreaterThan(Float value) {
            addCriterion("total >", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalGreaterThanOrEqualTo(Float value) {
            addCriterion("total >=", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalLessThan(Float value) {
            addCriterion("total <", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalLessThanOrEqualTo(Float value) {
            addCriterion("total <=", value, "total");
            return (Criteria) this;
        }

        public Criteria andTotalIn(List<Float> values) {
            addCriterion("total in", values, "total");
            return (Criteria) this;
        }

        public Criteria andTotalNotIn(List<Float> values) {
            addCriterion("total not in", values, "total");
            return (Criteria) this;
        }

        public Criteria andTotalBetween(Float value1, Float value2) {
            addCriterion("total between", value1, value2, "total");
            return (Criteria) this;
        }

        public Criteria andTotalNotBetween(Float value1, Float value2) {
            addCriterion("total not between", value1, value2, "total");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldIsNull() {
            addCriterion("weekly_hold is null");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldIsNotNull() {
            addCriterion("weekly_hold is not null");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldEqualTo(Float value) {
            addCriterion("weekly_hold =", value, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldNotEqualTo(Float value) {
            addCriterion("weekly_hold <>", value, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldGreaterThan(Float value) {
            addCriterion("weekly_hold >", value, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldGreaterThanOrEqualTo(Float value) {
            addCriterion("weekly_hold >=", value, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldLessThan(Float value) {
            addCriterion("weekly_hold <", value, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldLessThanOrEqualTo(Float value) {
            addCriterion("weekly_hold <=", value, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldIn(List<Float> values) {
            addCriterion("weekly_hold in", values, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldNotIn(List<Float> values) {
            addCriterion("weekly_hold not in", values, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldBetween(Float value1, Float value2) {
            addCriterion("weekly_hold between", value1, value2, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyHoldNotBetween(Float value1, Float value2) {
            addCriterion("weekly_hold not between", value1, value2, "weeklyHold");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeIsNull() {
            addCriterion("weekly_trade is null");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeIsNotNull() {
            addCriterion("weekly_trade is not null");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeEqualTo(Float value) {
            addCriterion("weekly_trade =", value, "weeklyTrade");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeNotEqualTo(Float value) {
            addCriterion("weekly_trade <>", value, "weeklyTrade");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeGreaterThan(Float value) {
            addCriterion("weekly_trade >", value, "weeklyTrade");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeGreaterThanOrEqualTo(Float value) {
            addCriterion("weekly_trade >=", value, "weeklyTrade");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeLessThan(Float value) {
            addCriterion("weekly_trade <", value, "weeklyTrade");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeLessThanOrEqualTo(Float value) {
            addCriterion("weekly_trade <=", value, "weeklyTrade");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeIn(List<Float> values) {
            addCriterion("weekly_trade in", values, "weeklyTrade");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeNotIn(List<Float> values) {
            addCriterion("weekly_trade not in", values, "weeklyTrade");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeBetween(Float value1, Float value2) {
            addCriterion("weekly_trade between", value1, value2, "weeklyTrade");
            return (Criteria) this;
        }

        public Criteria andWeeklyTradeNotBetween(Float value1, Float value2) {
            addCriterion("weekly_trade not between", value1, value2, "weeklyTrade");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}